import QtQuick 2.15
import QtQuick.Dialogs

Item{
    id:rootDialog
    visible: false // 隐藏
    property alias collectLimitDlg: collectLimitDlg
    property alias saveLimitDlg: saveLimitDlg
    property alias saveFinishedDlg: saveFinishedDlg
    //收藏限制对话框
    MessageDialog {
        id: collectLimitDlg
        title: "警告"
        text: "最多收藏5个频道"
        onAccepted: {
            console.log("用户接受了警告框内容。")
        }
    }

    //保存限制对话框
    MessageDialog{
        id: saveLimitDlg
        title: "警告"
        text: "当前未收藏频道"
        onAccepted: {
            console.log("用户接受了警告框内容。")
        }
    }

    //保存完成对话框
    MessageDialog{
        id: saveFinishedDlg
        title: "消息"
        text: "保存完成"
        onAccepted: {
            console.log("用户接受了警告框内容。")
        }
    }
}
